
#include "fx2.h"
#include "fx2regs.h"

#define TIMER0_COUNT  0xE0C0 //TIMER0_COUNT= 10000h - (48,000,000 / 12 * FREQ) (where FREQ = 500Hz)
#define TIMER1_COUNT  0xF060 //TIMER1_COUNT= 10000h - (48,000,000 / 12 * FREQ) (where FREQ = 1000Hz)

extern unsigned int timer0_tick;
extern unsigned int timer1_tick;
extern unsigned int timer1_delay_disparo;
extern unsigned int timer1_tiempo_on_disparo;
extern unsigned int timer1_tiempo_on_disparo_retrasado;

void timer0 (void);
void timer1 (void);
